<template>
  <keep-alive :include="cachedViews">
    <router-view :key="key"></router-view>
  </keep-alive>
</template>
<script>
  export default {
    name: 'KeepRouterView',
    data() {
      return {}
    },
    computed: {
      cachedViews() {
        return this.$store.state.tagsView.cachedViews
      },
      key() {
        return this.$route.fullPath
      }
    },
    methods: {},
    components: {}
  }
</script>
<style type="text/scss" lang="scss" scoped>

</style>
